package com.ss.android.account.e;

import android.view.View;

public abstract class MuteQuickClickListener implements View.OnClickListener {
    static boolean isClickEnable = true;
    private static final Runnable resetClickableRunnable = new Runnable() {

        public final void run() {
            MuteQuickClickListener.isClickEnable = true;
        }
    };

    public MuteQuickClickListener() {

    }

    public abstract void doOnClick(View view);

    public final void onClick(View view) {
        if (isClickEnable) {
            isClickEnable = false;
            view.postDelayed(resetClickableRunnable, 500L);
            this.doOnClick(view);
        }
    }
}

